/*
Master file for the paper
Walker, Sarah, Jennifer Alix-Garcia, Ann Bartlett, Jamon Van Den Hoek, Hannah Friedrich, Paulo Murrillo-Sandoval, and Rosemary Isoto “Overlapping land rights and deforestation in Uganda: 20 years of evidence” Global Environmental Change (2023): 82 https://doi.org/10.1016/j.gloenvcha.2023.102701
*/


version 16
clear all
	set more off
	
*	Select user first to be able to run the do file

	local 	sel_user		1		// 
	
	if 		`sel_user' 		== 1 { 
		global 	user		"insert your user path here"
	}	
	
* 	This is the file structure for data and outputs.  
	
	global	data			"${user}Data/"
	global 	figures			"${user}Outputs/figures/"
	global  tables	        "${user}Outputs/tables/"
	global 	dofiles			"${user}Code/"

*   This section selects which files to run	

	local summary							1
	local interactionscensus				1
	local meregressions10					0
	local meregressions30					0
	local meregressions50					0
	

if `summary' {	
	include	"${dofiles}SumstatsBugandaReplicationFinal.do" 
}

if `interactionscensus' {	
	include	"${dofiles}RegressionsCensusReplicationFinal.do" 
}


if `meregressions10' {	
	include	"${dofiles}MeasurementErrorModelsBugandagte10Replication.do" 
}


if `meregressions30' {	
	include	"${dofiles}MeasurementErrorModelsBugandagte30.do" 
}

if `meregressions50' {	
	include	"${dofiles}MeasurementErrorModelsBugandagte50.do" 
}

